package day10;

public class phone {
    String band;
    double price;

    public phone() {
    }

    public phone(String band, double price) {
        this.band = band;
        this.price = price;
    }

    /**
     * 获取
     * @return band
     */
    public String getBand() {
        return band;
    }

    /**
     * 设置
     * @param band
     */
    public void setBand(String band) {
        this.band = band;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    public String toString() {
        return "phone{band = " + band + ", price = " + price + "}";
    }
}
